package com.example.demo.buessiness.company.interfaces;
import com.example.demo.buessiness.company.model.dto.CompanyRequest;
import com.example.demo.buessiness.company.model.dto.CompanyResponse;
import com.example.demo.buessiness.user.model.dto.UserResponse;
import com.example.demo.commons.jpa.PageableService;
import msa.common.model.PojoCover;
import msa.common.model.ResultModel;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ICompanyService extends PageableService, PojoCover<CompanyRequest, CompanyResponse> {
    ResultModel findCompanyById(Long id);

    ResultModel updateCompany(CompanyRequest companyRequest);
    ResultModel addCompany(CompanyRequest comRequest);


    ResultModel deleteCompany(Long id);

    List<CompanyResponse>  findAll();


    void modifyCompanyByName(String address,Long id);

    //void getCompanyByTime(String startTime,String endTime);

    //查询公司名
    List<CompanyResponse> findByCompany(String company);


}
